﻿<%@ Page Language="C#" MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true" CodeBehind="MaintainBillApproveList.aspx.cs" Inherits="Runda.CMS.Portal.ContractFollowUp.MaintainBillApproveList" StylesheetTheme="GlobleTheme"%>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">

    <script src="../Content/global.js" type="text/javascript"></script>
    <script  type="text/javascript" src="../Content/util.js"></script>
    <script src="../Content/Grid/map_grid.js" type="text/javascript"></script>
    
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Form/form.css" rel="Stylesheet" type="text/css" />

    <script type="text/javascript">
        function OpenEditMaintain(id, CheckStatus) { 
            if (CheckStatus == 1) {
                openMyFullWin('MaintainBasicApprove.aspx?RegisterID=' + id+'&type=approve', 'MaintainInfo');
            }
            else {
                openMyFullWin('MaintainBasicApprove.aspx?RegisterID=' + id+'&type=view', 'MaintainInfo');
            }
        }   
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
    <div class="Container">
        <table id="appFind" class="find" cellspacing="0" cellpadding="0" border="0">
            <tbody>
                <tr height="23">
                    <td class="wizHead" colspan="7">
                        <table style="table-layout: fixed; font-size: 9pt" cellspacing="0" cellpadding="0"
                            width="100%" height="100%">
                            <colgroup>
                                <col>
                                <col width="60">
                                <col width="60">
                                <tr>
                                    <td style="color: #ffffff">
                                        <b>快速查询</b>
                                    </td>
                                    <td class="icMenu mnuRight" nowrap>
                                    </td>
                                </tr>
                        </table>
                    </td>
                </tr>
                <tr id="__appFind_trQuery" height="40">
                    <td class="wizBox1" colspan="7">
                        <table id="__appFind_tbQuery1" style="table-layout: fixed; font-size: 9pt" height="100%"
                            cellspacing="0" cellpadding="0" width="100%">
                            <tr>
                                <td align="right">
                                    客户名称或区域：
                                </td>
                                <td>
                                    <asp:TextBox ID="txtContractCodeBasic" runat="server" Width="200px" CssClass="input"></asp:TextBox>
                                </td>
                                <td align="right">
                                    仪器名称：
                                </td>
                                <td>
                                    <asp:TextBox ID="txtinstrumentName" runat="server" Width="200px" CssClass="input"></asp:TextBox>
                                </td>
                                <td align="right">
                                    序列号：
                                </td>
                                <td>
                                    <asp:TextBox ID="txtSerialNum" runat="server" Width="200px" CssClass="input"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    审核状态：
                                </td>
                                <td>
                                    <asp:RadioButtonList ID="checkStatus" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Value=1 Text="未审核" />
                                    <asp:ListItem Value=2 Text="已审核" />
                                    <asp:ListItem Value=9 Text="全部" Selected="True" />
                                    </asp:RadioButtonList>
                                </td>
                                
                                <%--<td align="right">
                                    工作类型：
                                </td>
                                <td>
                                    <asp:DropDownList runat="server" ID="TaskType">
                                    </asp:DropDownList>
                                </td>--%>
                                
                                <td align="right">
                                    执行人
                                </td>
                                <td>
                                    <table cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
                                        <tr>
                                            <td nowrap>
                                                <div class="lu">
                                                    <span class="lui" oid="" onclick="openlui();"></span>
                                                    <asp:Label ID="employeeName" runat="server"></asp:Label></div>
                                            </td>
                                            <td width="25" style="text-align: right;">
                                                <img class="lu2" lookupbrowse="" lookupstyle="single" lookupclass="" features="dialogWidth:360px;dialogHeight:500px;resizable:yes;center:yes;status:no;help:no;scroll:no;"
                                                    lookupcustom="/Lookup/selectcustomeroflookup.aspx?title=user&department=maintain"
                                                    src="/Images/btn_off_lookup.gif"><input maptype="lu" class="lu" type="hidden" name="employeeGUID"
                                                        value="" runat="server" id="employeeGUID">
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                 <td align="right">
                                    
                                </td>
                                <td>
                                   <asp:Button ID="btnSearchBasic" runat="server" Text="查找" CssClass="button" OnClick="btnSearch_Click" />
                                </td>
                            </tr>                           
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="Container">
        <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>装机服务单列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                         
                    </td>
                </tr>
            </tbody>
        </table>
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
        <asp:Repeater ID="RepeaterUsers" runat="server"
            OnItemDataBound="RepeaterUsers_ItemDataBound">
            <HeaderTemplate>
                <table id="grid" class="grid" cellspacing="0" cellpadding="0">
                    <tbody>
                        <tr class="header">
                            <td align="middle" style="width:24%">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        客户名称</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle" style="width:10%">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        客户所在区域</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle" style="width:15%">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        仪器名称</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                             <td align="middle" style="width:9%">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        仪器序列号</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>          
                            <td align="middle" style="width:5%">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        执行人</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle" style="width:6%">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        审核状态</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                            <td align="middle" style="width:15%">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                        开始时间</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                          
                            <td align="middle"  style="width:15%">
                                <div>
                                    <div style="display: inline; float: left; height: auto; overflow: hidden; width: 96%;
                                        text-align: center;">
                                      结束时间</div>
                                    <div style="display: inline; float: right; height: auto; overflow: hidden;">
                                        <img src="../Content/Grid/bar_line.gif" border="0"></div>
                                </div>
                            </td>
                             
                                           
                            <td  style="width:1%">
                                <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif"
                                    AlternateText="刷新列表" />
                            </td>
                        </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr ondblclick="OpenEditMaintain('<%#Eval("RegisterID") %>',<%#Eval("checkStatus") %>)" onclick="handleClick()"  bgcolor='<%# System.Convert.ToInt16(Eval("AccessoryCheckStatus"))== 3? "#ffffff":System.Convert.ToInt16(Eval("AccessoryCheckStatus"))== 1? "#009933":"#999966" %>'>
                    <td>
                        <asp:Label runat="server" ID="CustomerID" Text='<%#Eval("CustomerID") %>' Visible="false"></asp:Label>
                        <asp:Label runat="server" ID="CustomerName"></asp:Label>
                        <asp:Label runat="server" ID="RegisterID" Text='<%# Eval("RegisterID") %>' Visible="false"></asp:Label>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="CustomerArea"></asp:Label>
                    </td>                                                      
                    
                    <td>
                        <asp:Label runat="server" ID="Instrumentname"></asp:Label>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="InstrumentID" Text='<%# Eval("InstrumentID")%>' Visible="false"></asp:Label>
                        <asp:Label runat="server" ID="InstrumentSerialNum" Text='<%# Eval("InstrumentSerialNum") %>'></asp:Label>
                    </td>     <td>
                        <asp:Label runat="server" ID="Maintainer" Text='<%#Eval("Maintainer") %>' Visible="false"></asp:Label>
                        <asp:Label runat="server" ID="MaintainerName"></asp:Label>
                    </td>
                    <td>
                       <%-- <asp:Label runat="server" ID="TaskType" Text='<%# Eval("TaskType")%>' Visible="false"></asp:Label>
                        <asp:Label runat="server" ID="TaskTypeName"></asp:Label>--%>
                        <asp:Label runat="server" ID="checkStatus" Text='<%# Eval("AccessoryCheckStatus")%>' Visible="false"></asp:Label>
                        <asp:Label runat="server" ID="checkStatusName"></asp:Label>
                    </td>
                    <td>                      
                          <asp:Label runat="server" ID="BeginDate" Text='<%#Eval("BeginDate") %>'></asp:Label>
                    </td>
                     <td>                      
                            <asp:Label runat="server" ID="EndTime" Text='<%#Eval("EndTime") %>'></asp:Label>
                    </td>
                                  
                    <td>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </asp:Repeater>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
            PageSize="15" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" ShowCustomInfoSection="Left"
            Width="100%" LayoutType="Table" SubmitButtonClass="but" SubmitButtonText="转到"
            OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
